package com.guigu.tms.manager.controller.wj;

import com.guigu.tms.commons.entity.base.PdTransportTrips;
import com.guigu.tms.manager.feign.wj.TransportTripsFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/pdTransportTrips")
public class TransportTripsController {

    @Autowired
    TransportTripsFeignClient transportTripsFeignClient;

    @GetMapping("/ShowTransportTrips")
    public List<PdTransportTrips> ShowTransportTrips(){
        return transportTripsFeignClient.ShowTransportTrips();
    }
}
